package com.codejie.pms.service.impl;

import com.codejie.pms.entity.StaffKpi;
import com.codejie.pms.mapper.StaffKpiMapper;
import com.codejie.pms.service.StaffKpiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StaffKpiServicelmpl implements StaffKpiService {
    @Resource
    StaffKpiMapper staffKpiMapper;

    @Override
    public void addStaffKpi(StaffKpi staffKpi) {
        staffKpiMapper.addStaffKpi(staffKpi);
    }

    @Override
    public void deleteStaffKpi(String staffId) {
        staffKpiMapper.deleteStaffKpi(staffId);
    }

    @Override
    public void reviseStaffKpi(String staffId) {
        staffKpiMapper.reviseStaffKpi(staffId);
    }

    @Override
    public List<StaffKpi> getStaffKpiList(String staffId) {
        return staffKpiMapper.getStaffKpiList(staffId);
    }

    @Override
    public List<StaffKpi> getAllStaffKpiList() {
        return staffKpiMapper.getAllStaffKpiList();
    }

    @Override
    public List<StaffKpi> getStaffKpiList2(String projectId) { return staffKpiMapper.getStaffKpiList2(projectId); }

}
